<%@ page import="com.wzy.Jdbc封装.pojo.News_comment" %>
<%@ page import="java.util.List" %>
<jsp:useBean id="comment" class="com.wzy.level.comment.commentServiceImpl.commentServiceImpl" />
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>News_comment表</title>
</head>
<body>
<div>
    <h1>news_comment表</h1>
    <table>
        <%
            List<News_comment> news_comments = comment.selectAll();
            for(int i = 0; i<news_comments.size();++i){
        %>
        <tr>
            <td><%=news_comments.get(i).getId()%></td>
            <td><%=news_comments.get(i).getNewsId()%></td>
            <td><%=news_comments.get(i).getContent()%></td>
            <td><%=news_comments.get(i).getAuthor()%></td>
            <td><%=news_comments.get(i).getIp()%></td>
            <td><%=news_comments.get(i).getDate()%></td>
            <td><a href="comment_insert_update.jsp?state=0&id=<%=news_comments.get(i).getId()%>">修改</a></td>
            <td><a href="comment_insert_update.jsp?state=1&id=<%=news_comments.get(i).getId()%>">新增</a></td>
        </tr>
        <%
            }
        %>

    </table>
</div>

</body>
</html>
